/* --- Stili Base per tutti i Dispositivi --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: verdana, sans-serif;
    background-color: white;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    background-image: url('parquet1.jpg');
    background-repeat: repeat;
    background-size: auto;
}

/* --- Header e Navigazione --- */
.navigatore {
    background-color: black;
    padding: 20px 16px;
    border-bottom: solid yellow 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

.LogoBC img {
    height: 130px;
    width: auto;
    margin-left: 20px;
}

.navigatore nav {
    flex-grow: 1;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    margin-right: 200px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    text-decoration: none;
    color: white;
    font-size: larger;
    font-weight: bold;
    padding: 5px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav a:hover {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
}









 /* --- STILE GENERALE --- */
       

        .navbar {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            background-color: black; /* Colore Blu Basket */
            border-radius: 8px;
        }

        .navbar li {
            position: relative;
        }

        .navbar a {
            display: block;
            color: white;
            padding: 15px 20px;
            text-decoration: none;
            font-weight: bold;
            display: flex;
            align-items: center;
        }

     

        /* --- LE NUOVE FRECCE (Puro CSS - Indistruttibili su Apple) --- */
        .arrow {
            display: inline-block;
            width: 0;
            height: 0;
            margin-left: 8px;
            vertical-align: middle;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 5px solid white; /* Punta in basso */
            transition: transform 0.3s ease;
        }

        /* Rotazione della freccia quando il menu è aperto */
        .is-open > a .arrow {
            transform: rotate(180deg);
        }

        /* --- IL DROPDOWN --- */
        .dropdown-content {
            display: none; /* Nascosto di base */
            position: absolute;
            background-color: black;
            min-width: 180px;
            box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
            z-index: 1000;
            top: 100%;
            left: 0;
            border-radius: 0 0 5px 5px;
        }

       

        .dropdown-content a:last-child {
            border-bottom: none;
        }

      

        /* Classe che attiva il menu (gestita da JS) */
        .is-open .dropdown-content {
            display: block;
        }

        /* Responsive per telefoni */
        @media (max-width: 768px) {
            .navbar {
                flex-direction: column;
            }
            .dropdown-content {
                position: static;
                width: 100%;
            }
        }










/* --- Sponsor e Carousel --- */
.sponsor-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    position: static;
}

.sponsor {
    width: 90px;
    height: auto;
    transition: transform 0.3s ease;
}
/* --- Dimensioni Specifiche per ogni Sponsor --- */

.s-1 { width: 95px !important;  } /* Sponsor 5 */
.s-2 { width: 105px !important; } /* Sponsor 4 */
.s-3 { width: 80px !important;  } /* Sponsor 6 */
.s-4 { width: 120px !important; } /* Sponsor 1 */
.s-5 { width: 75px !important;  } /* Sponsor 7 */
.s-6 { width: 85px !important;  } /* Sponsor 2 */
.s-7 { width: 115px !important; } /* Sponsor 3 */
.s-8 { width: 70px !important;  } /* Sponsor 8 */

/* Assicurati che l'altezza si regoli da sola per non schiacciare i loghi */
.sponsor {
    height: auto;
}






.carousel-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
    position: relative;
    height: 400px;
    overflow: hidden;
    background-color: transparent;
}

.carousel-set {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.8s ease, filter 0.8s ease;
    pointer-events: none;
    position: absolute;
}

.carousel-set.active {
    opacity: 1;
    filter: blur(0px);
    pointer-events: auto;
    position: relative;
}

.carousel-set img {
    width: 30%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}






/* --- Video Gallery --- */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.video-box {
    flex: 1 1 calc(25% - 15px);
    min-width: 200px;
    background-color: #000000e6;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    color: white;
}

.video-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.video-box iframe {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    display: block;
}

.video-box p {
    text-align: center;
    margin-top: 12px;
    font-weight: bold;
    font-size: 14px;
}

/* --- Footer --- */
footer {
    width: 100%;
    background-color: #B22222;
    color: white;
    padding: 20px 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 0 0 23%;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: yellow;
    margin-bottom: 10px;
}

.footer-column a, .footer-column p {
    color: white;
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 18px;
}

/* --- Media Queries per la responsività --- */
@media (max-width: 1200px) {
    nav ul {
        margin-right: 20px; /* Riduce il margine per evitare lo spazio eccessivo */
    }
}

@media (max-width: 900px) {
    .navigatore {
        flex-direction: column;
        text-align: center;
    }
    .navigatore nav ul {
        justify-content: center;
        margin-top: 20px;
        margin-right: 0; /* Rimuove il margine sul tablet */
    }
    .LogoBC img {
        margin: 0;
    }
    .sponsor-container {
        gap: 10px;
    }
    .sponsor {
        width: 70px;
    }
    .carousel-container {
        height: 250px;
    }
    .carousel-set img {
        width: 40%;
    }
    .video-box {
        flex: 1 1 calc(50% - 10px); /* Due video per riga su tablet */
    }
}

@media (max-width: 600px) {
    .navigatore {
        padding: 10px;
    }
    .LogoBC img {
        height: 80px;
    }
    .navigatore nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .dropdown-full-content, .dropdown-content {
        position: static;
        width: 100%;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        flex-direction: column;
    }
    .dropdown-full:hover .dropdown-full-content, li:hover .dropdown-content {
        display: flex; /* Cambiato da 'block' per consistenza */
    }
    .dropdown-full-content a, .dropdown-content a {
        margin: 10px 0;
        text-align: center;
    }
    .carousel-container {
        height: 200px;
    }
    .carousel-set {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .carousel-set img {
        width: 70%;
    }
    .video-gallery {
        padding: 10px;
        gap: 10px;
    }
    .video-box {
        flex: 1 1 100%; /* Un video per riga su cellulare */
        min-width: unset;
    }
    .footer-column {
        flex: 1 1 100%;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}




